using MongoDB.Bson.Serialization.Attributes;
using System;
using System.Collections.Generic;
using System.Linq;

namespace Colorful.Apps.Models
{
    /// <summary>
    /// App
    /// </summary>
    public class App : Colorful.Models.BaseIntId
    {
        /// <summary>
        /// App名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 图标
        /// </summary>
        public string Icon { get; set; }
        /// <summary>
        /// 图标颜色
        /// </summary>
        public string IconColor { get; set; }
        /// <summary>
        /// 访问地址
        /// </summary>
        public string Url { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        public long ByOrder { get; set; }
        #region Ignore
        /// <summary>
        /// 是否已拥有该应用
        /// </summary>
        [BsonIgnore]
        public bool Owned { get; set; }
        #endregion
    }
}
